package com.hyzx.qbasic.admin.common.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * Created by 黄江华 on 2018/2/23
 */

@Component
@PropertySource("classpath:local-storage.properties")
public class LocalStorageConfig {
    @Value("${file.upload.location}")
    private String fileUploadLocation;

    @Value("${file.upload.url}")
    private String fileUploadUrl;

    @Value("${image.root.dir}")
    private String imageRootDir;

    @Value("${attachment.root.dir}")
    private String attachmentRootDir;

    public String getFileUploadLocation() {
        return fileUploadLocation;
    }

    public void setFileUploadLocation(String fileUploadLocation) {
        this.fileUploadLocation = fileUploadLocation;
    }

    public String getFileUploadUrl() {
        return fileUploadUrl;
    }

    public void setFileUploadUrl(String fileUploadUrl) {
        this.fileUploadUrl = fileUploadUrl;
    }

    public String getImageRootDir() {
        return imageRootDir;
    }

    public void setImageRootDir(String imageRootDir) {
        this.imageRootDir = imageRootDir;
    }

    public String getAttachmentRootDir() {
        return attachmentRootDir;
    }

    public void setAttachmentRootDir(String attachmentRootDir) {
        this.attachmentRootDir = attachmentRootDir;
    }
}
